Qualcomm AI Engine Direct - Debugger Convergence Phase 2: Migrating to official numeric discrepancy evaluator#18834
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18834
Note: Links to docs will display an error until the docs builds have been completed. ❌ 6 New Failures, 2 Unrelated FailuresAs of commit 5ecde09 with merge base 7fdd306 ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
Hi @Gasoonjia, |
00b62ad to
a3760f4
Compare
a3760f4 to
5ecde09
Compare
Summary
Debugger Convergence Stage 2.
Stage 1 (Merged): #17804
Stage 2: This PR
Stage 3: Adding SKILL.md for debugger
Changes made on QNN backend
NumericalComparatorBaseedge_after_transform/forwardreference graphedge_after_transform/forwardgraph instead of the one that goes through serialize and deserialize since serialize will not savequant attributes. Reference:executorch/exir/serde/serialize.py
Line 141 in d31d4be
Changes made on dev tools
executorch/devtools/inspector/_inspector.py
Line 1150 in 411ede2
edge before passesgraph for now. Added a param and make sure it is still backward compatible.pandas dataframesince it is helpful for users to mapdataframeback to the original graph.Test plan
Passing E2E test:
python backends/qualcomm/tests/test_qnn_delegate.py TestUtilsScript.test_intermediate_debugger --device ${DEVICE} --model SM8750 --build_folder build-android --executorch_root . --artifact_dir ./test_debugger --image_dataset ../datasets/imagenet-mini/val/Passing the following UT:
python backends/qualcomm/tests/test_qnn_delegate.py -k TestQNNQuantizedUtils.test_qnn_backend_dump_intermediate_outputs_simple_model --model SM8750 --device ${DEVICE} --build_folder build-androidpython backends/qualcomm/tests/test_qnn_delegate.py -k TestQNNQuantizedUtils.test_qnn_backend_dump_intermediate_outputs_topk --model SM8750 --device ${DEVICE} --build_folder build-androidpython backends/qualcomm/tests/test_qnn_delegate.py -k TestQNNFloatingPointUtils.test_qnn_backend_dump_intermediate_outputs_topk --model SM8750 --device ${DEVICE}--build_folder build-androidpython backends/qualcomm/tests/test_qnn_delegate.py -k TestQNNFloatingPointUtils.test_qnn_backend_dump_intermediate_outputs_simple_model --model SM8750 --device ${DEVICE} --build_folder build-androiddevtools/inspector/_inspector_utils.py, skip delegate call event since it holds alldebug_handlesand will mess up the op eventdebug handle.